package by.jtraining.london.service.provider;

import java.util.ArrayList;
import java.util.List;

import by.jtraining.london.model.Education;

import com.google.inject.Provider;

public class EducationListProvider implements Provider <List<String>>{
	
	private List<String> list;
	
	@Override
	public List<String> get() {
		if(list == null){
			list = new ArrayList<String>();
			for(Education val : Education.values()){
				list.add(val.getEducation());
			}
		}
		return list;
	}
}
